package com.woniuxy.microloanserver.feign;

import com.woniuxy.bean.BillBean;
import com.woniuxy.bean.MemberEntity;
import com.woniuxy.bean.regularbean.MemberAccountOutBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Description: 调用sys微服务（个人中心）
 *
 * @Auther: HanLei
 * @Date: 2021/4/16:14:44
 */
@FeignClient("cd-finance-micro-sys-server")
public interface SysFeign {

    /*
     * Description :   根据用户名查询用户资料
     * ChangeLog : 1. 创建 (2021/4/16 14:48 );
     * @param username    用户名
     * @return null
     */
    @PostMapping(value = "/member/info",produces = MediaType.APPLICATION_JSON_VALUE)
    String getMemberInfo(@RequestBody MemberEntity memberEntity);

    /*
     * Description :   根据用户名查询用户资产
     * ChangeLog : 1. 创建 (2021/4/16 14:48 );
     * @param username    用户名
     * @return null
     */
    @PostMapping(value = "/sys/profit/all",produces = MediaType.APPLICATION_JSON_VALUE)
    String getAssets(@RequestBody MemberEntity member);
    
    /*
     * Description :   增加余额
     * ChangeLog : 1. 创建 (2021/4/20 12:10 ); 
     * @param null  
     * @return null
     */
    @PostMapping(value = "/member/balancepayment",produces = MediaType.APPLICATION_JSON_VALUE)
    String addWalletBalance(@RequestBody BillBean billBean);
    

}
